import UnoCss from 'unocss/vite';
import presetUno from '@unocss/preset-uno';
import presetAttributify from '@unocss/preset-attributify';

export default () => {
  return UnoCss({
    hmrTopLevelAwait: false, // unocss默认是true，低版本浏览器是不支持的，启动后会报错
    presets: [presetUno(), presetAttributify() ],
  });
};
